package com.car.loan.project.xr.util.bo.business;

import com.car.loan.project.xr.util.vo.LoanAlbumVo;
import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author huangding
 * @description
 * @date 2019/12/22 12:04
 */
@Data
public class CarInfoInputBo {


    /**
     * 登记车主 操作按钮：保存、提交/撤回、返回
     */

    @ApiModelProperty(value = "业务id", required = true)
    @NotBlank
    private String loanId;

    @ApiModelProperty(value = "0=保存 1=提交", required = true)
    @NotNull
    @Min(0)
    @Max(1)
    private Long operatorStatus;

    @ApiModelProperty(value = "车辆品牌(银行)", required = true)
    private String bankCarBrand;

    @ApiModelProperty(value = "车辆型号(银行)", required = true)
    private String bankCarType;

    /**
     * 发动机号
     */
    @ApiModelProperty(value = "发动机号", required = true)
    private String engineNo;

    /**
     * 车架号
     */
    @ApiModelProperty(value = "车架号", required = true)
    private String frameNo;


    /**
     * 公牌/私牌
     */
    @ApiModelProperty(value = "车牌类型公牌/私牌", required = true)
    private String plateType;

    @ApiModelProperty(value = "车身颜色", required = true)
    private String color;

    @ApiModelProperty(value = "合同车价", required = true)
    private Double sellAmount;

    /**
     * 发票日期
     */
    @ApiModelProperty(value = "开票日期yyyy-mm-dd", required = true)
    private String invoiceDate;

    /**
     * 开票价
     */
    @ApiModelProperty(value = "开票金额", required = true)
    private Double invoicePrice;

    /**
     * 开票单位
     */
    @ApiModelProperty(value = "开票单位", required = true)
    private String invoiceUnit;

    @ApiModelProperty(value = "登记车主", required = true)
    private String registOwner;

    @ApiModelProperty("车辆信息图片")
    private List<LoanAlbumVo> carInfoAlbums = Lists.newArrayList();


}
